package com.medata.repository;

import com.medata.dataObject.Tasks;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface TasksRepository extends JpaRepository<Tasks,Integer> {
    Page<Tasks> findByUsernameOrderByCreateTimeDesc(String username, Pageable pageable);
    Tasks findById(Integer id);
}
